<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
   <style>

div.form label {
    float: left;
    margin: 2px 5px 2px 0px;
    color: rgb(91,176,199);
    text-align: right;
    letter-spacing: 2px;
    width: 120px;
    overflow: hidden;
    font-size: 15px;
    height: 18px;
    line-height: 18px;
    vertical-align: middle;
}
html.body{
        font-family: "WenQuanYi Micro Hei",微软雅黑,Arial,Helvetica,sans-serif;
}

input.button, input.button_small, input.button_user_action {
    border: 0px;
    color: white;
    cursor: pointer;
    font-family: 微软雅黑,Arial,Helvetica,sans-serif;
    background-color: rgb(255,159,30);
    vertical-align: middle;
    width: 92px;
    height: 28px;
}

input.button {
    font-size: 15px;
    font-weight: bold;
    padding: 4px 16px;
    margin-left: 50px;
}
.input_public {
    margin: 0px 10px 0px 0px;
    border: 1px solid #BDC7D8;
    font-size: 15px;
    line-height: 18px;
    padding: 5px 4px;
    padding-top: 5px;
    padding-right: 4px;
    padding-bottom: 5px;
    padding-left: 4px;
    vertical-align: middle;
    width: 240px;
}
    </style>
    
    <script type="text/javascript">
    $(function(){
        $('div.user_setting_block ul li a#user_pwd').addClass('active_link');
    })
    $(function(){
        $.formValidator.initConfig({formID:"reset-pwd-form",theme:"Bull",submitOnce:true,
            onError:function(msg,obj,errorlist){alert(msg);},
            ajaxPrompt : '有数据正在异步验证，请稍等...'
        });
        $("#User_password_old").formValidator({onFocus:"请输入原密码"}).
            inputValidator({min:1,onError:"原密码不能为空"});
        $("#User_password").formValidator({onFocus:"请输入新密码"}).
            inputValidator({min:1,onError:"新密码不能为空"});
        $("#User_password_repeat").formValidator({onFocus:"请再次输入新密码"}).
            inputValidator({min:1,onError:"重复密码不能为空"}).
            compareValidator({desID:"User_password",operateor:"=",onError:"2次密码不一致,请确认"});
    });

</script>
    <base href="<%=basePath%>">
    
    <title>My JSP 'updatePass.jsp' starting page</title>
    
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">
	<!--
	<link rel="stylesheet" type="text/css" href="styles.css">
	-->

  </head>
  
  <body>
    <div class="form">
    <form id="reset-pwd-form" action="update_pass" method="post">
<div style="display:none"><input type="hidden" value="9b3fd25709273dd00dca25cd2c5151909ef79075" name="YII_CSRF_TOKEN"></div>    <table class="ubm_input">
        <tbody>
            <tr>
                <td><label for="User_password_old">原密码</label></td>
                <td><input maxlength="32" class="input_public input_error" name="userbean.oldPass" id="User_password_old" type="password" style="color: rgb(153, 153, 153);"></td>
                <td><div id="User_password_oldTip" class="onError" style="margin: 0px; padding: 0px; background: transparent;"><div class="onError"><div class="onError-bottom"><div class="onError-right"><div class="onError-left"><p class="onError-top-right" style="display:none">原密码不能为空</p></div></div></div></div></div></td>
            </tr>
            <tr>
                <td><label for="User_password">新密码</label></td>
                <td><input maxlength="32" class="input_public input_error" name="userbean.newPass" id="User_password" type="password" value="" style="color: rgb(153, 153, 153);"></td>
                <td><div id="User_passwordTip" class="onError" style="margin: 0px; padding: 0px; background: transparent;"><div class="onError"><div class="onError-bottom"><div class="onError-right"><div class="onError-left"><p class="onError-top-right" style="display:none">新密码不能为空</p></div></div></div></div></div></td>
            </tr>
            <tr>
                <td><label for="User_password_repeat">重复密码</label></td>
                <td><input maxlength="32" class="input_public" name="userbean.newAffirmPass" id="User_password_repeat" type="password"></td>
                <td><div id="User_password_repeatTip" class="onShow" style="margin: 0px; padding: 0px; background: transparent;"></div></td>
            </tr>
        </tbody>
    </table>


    <div class="margin_left_134">
        <input id="submit_button" class="button" onclick="submitForm(&quot;reset-pwd-form&quot;,&quot;submit_button&quot;);" name="yt0" type="submit" value="提交修改">        </div>

    </form>
</div></div>
  </body>
</html>
